<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: General Health Questionnaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for GHQ"><tr><td>GHQ</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2> General Health Questionnaire </h2>

<h3>Description</h3>

<p>Data from an psychiatric screening questionnaire 
</p>


<h3>Usage</h3>

<pre>data("GHQ")</pre>


<h3>Format</h3>

<p>A data frame with 22 observations on the following 4 variables.
</p>

<dl>
<dt><code>GHQ</code></dt><dd><p>the General Health Questionnaire score.</p>
</dd>
<dt><code>sex</code></dt><dd><p>a factor with levels <code>female</code> and <code>male</code></p>
</dd>
<dt><code>cases</code></dt><dd><p>the number of diseased subjects.</p>
</dd>
<dt><code>non.cases</code></dt><dd><p>the number of healthy subjects.</p>
</dd>
</dl>



<h3>Details</h3>

<p>The data arise from a study of a psychiatric screening questionnaire 
called the GHQ (General Health Questionnaire, see Goldberg, 1972). 
Here the main question of interest is to see how caseness is related to 
gender and GHQ score.
</p>


<h3>Source</h3>

<p>D. Goldberg (1972). <em>The Detection of Psychiatric Illness by Questionnaire</em>, 
Oxford University Press, Oxford, UK.
</p>


<h3>Examples</h3>

<pre>

  data("GHQ", package = "HSAUR")
  male &lt;- subset(GHQ, sex == "male")
  female &lt;- subset(GHQ, sex == "female")
  layout(matrix(1:2, ncol = 2))
  barplot(t(as.matrix(male[,c("cases", "non.cases")])), main = "Male", xlab = "GHC score")
  barplot(t(as.matrix(male[,c("cases", "non.cases")])), main = "Female", xlab = "GHC score")

</pre>


</body></html>
